public class Main {
    public static void main(String[] args) {
        //byte to int
        byte b = 10;
        int i = b & 0xFF;
        System.out.println("byte to int:"+ i);

        //int to float
        int i2 = 30000;
        float f = (float) i2;
        System.out.println("int to float:" + f);

        //float to double
        float f3 = 3.14f;
        double d = (double) f3;
        System.out.println("float to double:"+ d);

    }
}